package folder.main.exp0.controllers.linearProgramming.delay;

import com.jom.OptimizationProblem;

import folder.main.exp0.controllers.linearProgramming.LinearProgramming;
import folder.model.network.Network;

public class SND_LP extends LinearProgramming
{
	public SND_LP( Network network, double[][] delays, int T )
	{
		super( network, delays, T );
		
		this.setMatches( this.matching( this.arranging( this.optimizationProblem() ) ) );		
	}
	
	protected OptimizationProblem optimizationProblem()
	{
		OptimizationProblem optimizationProblem = new OptimizationProblem();
		optimizationProblem.addDecisionVariable( "c", true, new int[]{ 1, delays.length }, 0, 1 );
		optimizationProblem.setObjectiveFunction( "minimize", "sum( c )" );
		
		return optimizationProblem;
	}

}
